package br.com.livro.javapersistence.commons.persistence;

import org.hibernate.cfg.ImprovedNamingStrategy;
import org.hibernate.util.StringHelper;

public class NammingStrategy extends ImprovedNamingStrategy {

	private static final long serialVersionUID = 2568818126489971708L;

	public String propertyToColumnName(String propertyName) {
		return propertyName.toUpperCase();
	}
	
	public String classToTableName(String className) {
		return "TB_" + StringHelper.unqualify(className).toUpperCase();
	}

}
